package com.leosoft.heatmonitor.service.transactional;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.leosoft.heatmonitor.dao.LocationDAO;

@Component("locationService")
public class LocationService {
	@Autowired
	LocationDAO locationDAO;

	public List<String> getProvince() {
		return locationDAO.getProvince();
	}

	public List<String> getCity(String province) {
		return locationDAO.getCity(province);
	}

	public List<String> getDistrict(String province, String city) {
		return locationDAO.getDistrict(province, city);
	}
}
